Filter hook 'get_{$adjacent}_post_excluded_terms'

in WP Core File wp-includes/link-template.php at line 1864

Description

Filters the IDs of terms excluded from adjacent post queries. The dynamic portion of the hook name, `$adjacent`, refers to the type of adjacency, 'next' or 'previous'. Possible hook names include: - `get_next_post_excluded_terms` - `get_previous_post_excluded_terms`

Occurrences

Filename Line Number
wp-includes/link-template.php 1864

Parameters

Type Name Description
int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided.

PHP Doc

/**
	 * Filters the IDs of terms excluded from adjacent post queries.
	 *
	 * The dynamic portion of the hook name, `$adjacent`, refers to the type
	 * of adjacency, 'next' or 'previous'.
	 *
	 * Possible hook names include:
	 *
	 *  - `get_next_post_excluded_terms`
	 *  - `get_previous_post_excluded_terms`
	 *
	 * @since 4.4.0
	 *
	 * @param int[]|string $excluded_terms Array of excluded term IDs. Empty string if none were provided.
	 */